<?php
if (!defined('IN_DISCUZ')){
	exit('Access Denied');
}

global $_G;

if (!$_G['uid']){
	showmessage('postperm_login_nopermission', NULL, array(), array(
			'login'=>1
	));
}
/********************************************************************************************/

switch ($do){
	case 'sale':
		$navtitle = $metakeywords = $metadescription = $profile_title = lang('shop/template', 'quan_ly_gian_hang');

		if (!$uData)
			showmessage('ban_chua_dang_ky_gian_hang', 'shop.php?mod=store&ac=register');

		if ($uData['verificationed'] != 1)
			showmessage('you_not_complete_profile_to_post', 'shop.php?mod=store&ac=profile&do=update');

		$str = 'Ban';
	break;
	case 'buy':
		$navtitle = $metakeywords = $metadescription = $profile_title = lang('shop/template', 'da_mua');
		$str = 'Mua';
	break;
	default:
		showmessage('undefined_action', NULL);
	break;
}
